<?php   // $Id: chang_cli.php 105 2007-12-26 15:49:58Z pcoustillas $ ?>
<?php   
/*Copyright (C) 2003-2004 Guy Hendrickx
Licensed under the terms of the GNU  General Public License:http://www.opensource.org/licenses/gpl-license.php
File Authors:Guy Hendrickx */
require_once("include/verif.php");
require_once("include/config/common.php");
$num_bon=isset($_GET['num_bon'])?$_GET['num_bon']:$_POST['num_bon'];
$client=isset($_GET['num_client'])?$_GET['num_client']:$_POST['num_client'];

//echo "num_bon $num_bon client $client ";
$sql2 = "UPDATE " . $tblpref ."bon_comm SET client_num='".$client."' WHERE num_bon = '".$num_bon."'";
mysql_query($sql2) OR die("<p>Erreur Mysql<br/>$sql2<br/>".mysql_error()."</p>");
header("Location: bon_edit.php?num_bon=$num_bon&nom=$client");

?>
